package com.metering.purchaseServerCommon.common.bean.service;


import com.metering.purchaseServerCommon.common.bean.dto.LogDO;
import com.metering.purchaseServerCommon.common.bean.interceptor.FeignIntercepter;
import com.metering.purchaseServerCommon.common.bean.util.R;

import feign.Headers;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.scheduling.annotation.Async;
import org.springframework.web.bind.annotation.PostMapping;

@Headers("Content-Type:application/json")
@FeignClient(name = "api-base", configuration = FeignIntercepter.class)
public interface LogRpcService {
    @Async		//
    @PostMapping("log/save")
    R save(LogDO logDO);
}
